package com.demostic.demostic_test.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.fragment.app.FragmentActivity;

import com.bumptech.glide.Glide;
import com.demostic.demostic_test.R;
import com.demostic.demostic_test.base.BaseActivity;

public class WifiActivity extends BaseActivity implements View.OnClickListener {
    private final String TAG = WifiActivity.class.getSimpleName();
    private ImageView imageView;
    private ImageView image_back;
    private TextView tv_conned;
    private TextView tv_unConn;

    @Override // com.demostic.demostic_test.base.BaseActivity, android.support.v7.app.AppCompatActivity, android.support.v4.app.FragmentActivity, android.app.Activity
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wifi);
        initView();
    }

    private void initView() {
        this.imageView = (ImageView) findViewById(R.id.imageView);
        this.image_back = (ImageView) findViewById(R.id.image_back);
        this.tv_unConn = (TextView) findViewById(R.id.tv_unConn);
        this.tv_conned = (TextView) findViewById(R.id.tv_Conned);
        Glide.with((FragmentActivity) this).load(Integer.valueOf((int) R.drawable.wifi_aty_wifi_bg)).into(this.imageView);
        this.image_back.setOnClickListener(this);
        this.tv_unConn.setOnClickListener(this);
        this.tv_conned.setOnClickListener(this);
    }

    @Override // android.view.View.OnClickListener
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.image_back /* 2131755189 */:
                finish();
                return;
            case R.id.tv_unConn /* 2131755448 */:
                startActivity(new Intent("android.settings.WIFI_SETTINGS"));
                return;
            case R.id.tv_Conned /* 2131755449 */:
                startActivity(new Intent(this, SelectActivity_.class));
                finish();
                return;
            default:
                return;
        }
    }
}
